package sdk.pay.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/5/22.
 */

public class PayDateFormatUtil {
    static final ThreadLocal<SimpleDateFormat> sDateFormat;

    static {
        sDateFormat = new ThreadLocal<SimpleDateFormat>() {
            @Override
            protected SimpleDateFormat initialValue() {
                return new SimpleDateFormat("yyyy-MM-dd");
            }
        };
    }

    public static String getDate() {
        return sDateFormat.get().format(new Date());
    }
}
